import {GoodsService} from './GoodsService';
import GoodsInfo from '@/model/GoodsInfo';

export default  class VipService{
    static vip_goods_category_id = 181;
    static saler_goods_category_id = 182;
    static score_goods_category_id = 183;
    // static getVipServices(){
    //    let services = new Array<ServiceItem>();
    //     let one = new ServiceItem();
    //     one.type="查看";
    //     one.regular="-5积分";
    //     one.vip="免积分";

    //     let two = new ServiceItem();
    //     two.type="邀请得积分";
    //     two.regular="+10积分";
    //     two.vip="+15积分";

    //     let three = new ServiceItem();
    //     three.type="邀请得佣金";
    //     three.regular="+0.2元";
    //     three.vip="+双倍";
  
    //     services.push(one);
    //     services.push(two);
    //     return services;
    // }

    static getSalerServices(){
        let services = new Array<ServiceItem>();
         let one = new ServiceItem();
         one.type="普通会员";
         one.vip="10%";
 
         let two = new ServiceItem();
         two.type="黄金代理";
         two.vip="45%";

         let three = new ServiceItem();
         three.type="白金代理";
         three.vip="55%";

         let four = new ServiceItem();
         four.type="钻石代理";
         four.vip="65%";
   
         services.push(one);
         services.push(two);
         services.push(three);
         services.push(four);
         return services;
     }

    static getVipGoods(){
        return GoodsService.queryInfoList(VipService.vip_goods_category_id,null,false);
    }
    static getSalerGoods(){
        return GoodsService.queryInfoList(VipService.saler_goods_category_id,null,false)
    }

    static getScoreGoods(){
        return GoodsService.queryInfoList(VipService.score_goods_category_id,null,false)
    }
   
}

export class ServiceItem{
    type:string;
    regular:string;
    vip:string;
}